package com.nf.teamwork.mall.service.impl;

import com.nf.teamwork.mall.dao.ProductInfDao;
import com.nf.teamwork.mall.entity.ProductInf;
import com.nf.teamwork.mall.service.ProductInfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: LJP
 * @Classname ProductInfServiceImpl
 * @Date: 2020-02-27 19:13
 * @Description: 商品信息表service层
 */
@Service
public class ProductInfServiceImpl implements ProductInfService {
    @Autowired
    private ProductInfDao productInfDao;
    @Override
    public List<ProductInf> findAll() {
        return productInfDao.findAll();
    }

    @Override
    public List<ProductInf> getProductInfByColumnInfId(int columnInfId) {
        return productInfDao.getProductInfByColumnInfId(columnInfId);
    }
}
